public class Printer implements Device {
    private String model;

    public Printer(String model) {
        this.model = model;
    }

    @Override
    public void powerOn() {
        System.out.println(model + "打印机开机，准备就绪");
    }

    @Override
    public void powerOff() {
        System.out.println(model + "打印机关机，已保存设置");
    }

    @Override
    public void repair() {
        System.out.println(model+"打印机报修：可能卡纸或缺墨");
    }
}
